package com.linkhub.oms.admin.modules.oss.service;

import com.linkhub.oms.admin.common.enums.OssObjectModuleEnum;
import com.linkhub.oms.admin.modules.oss.domain.param.PutObjectParam;
import com.linkhub.oms.admin.modules.oss.domain.vo.PutObjectResultVO;

import java.io.InputStream;

/**
 * @Description: AliyunOSSBizService
 * @Author: echo
 * @Date: 2024/5/9 20:44
 * @Version: 1.0
 */
public interface AliyunOSSBizService {

    /**
     * 文件上传
     *
     * @param putObjectParam putObjectParam
     * @return PutObjectResultVO
     */
    PutObjectResultVO upload(PutObjectParam putObjectParam);

    /**
     * 文件上传
     * @param module
     * @param in
     * @param fileName
     * @return
     */
    PutObjectResultVO upload(OssObjectModuleEnum module, InputStream in, String fileName);
}
